package file;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;

/**
 * @author wang hao
 * @date 2023-04-02 10:29
 */
public class Demo09 {
    public static void main(String[] args) throws Exception {
        FileInputStream fi = new FileInputStream("src/main/java/file/1.txt");
        InputStreamReader isr = new InputStreamReader(fi, "GBK");
        BufferedReader bufferedReader = new BufferedReader(isr);
        String s = bufferedReader.readLine();
        System.out.println(s);
    }
}
